#include "mainwindow.h"
#include <QApplication>
#include <QStyleFactory>
#include <QFontDatabase>
#define FONT_FILE "data/FONT.TTF"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QApplication::setStyle(QStyleFactory::create("fusion"));
//    QFont font;
//    font.setPointSize(10);
//    font.setFamily("courier");
//    a.setFont(font);

    int fontId = QFontDatabase::addApplicationFont(FONT_FILE);
    if (fontId != -1){
        QString msyh = QFontDatabase::applicationFontFamilies ( fontId ).at(0);
        QFont font(msyh,10);
        QApplication::setFont(font);
    }

    MainWindow w;
    w.setWindowFlags(w.windowFlags()&~Qt::WindowMinMaxButtonsHint);
    w.show();

    return a.exec();
}
